﻿@model User
@{
    ViewBag.Title = "Login";
}
<div style="margin-left:300px" id="content">
    <div><text></text>@ViewBag.ErroMes</div>
    @using (Html.BeginForm())
    {
        <br />
        <br />
        <br />
        @Html.LabelFor(model => model.UserName)
        @Html.EditorFor(model => model.UserName)
        @Html.ValidationMessageFor(model=>model.UserName)
        <br />
        <br />
        @Html.LabelFor(model => model.Password)
        @Html.EditorFor(model => model.Password)
        @Html.ValidationMessageFor(model=>model.Password)
        <br />
        <br />
        <input type="submit" value="登陆" style="margin-left:100px;" id="sub" onclick="return CHeck()" />
    }
</div>
